package com.atdel.demo02;


/**
 * @BelongsProject: java_study
 * @BelongsPackage: com.atdel.demo02
 * @Author: Del
 * @CreateTime: 2025-03-03  19:04
 * @Description: TODO
 * @Version: 1.0
 */
public class HuntingSimulation {
    public static void main(String[] args) {
        Hunter hunter = new Hunter("猎人John");

        Animal deer = new Deer("小鹿");
        Animal rabbit = new Rabbit("小白兔");
        Animal fox = new Fox("红狐狸");

        hunter.hunt(deer);
        hunter.hunt(rabbit);
        hunter.hunt(fox);
    }
}
